package com.cn.shiro.service;

import java.util.Map;
import java.util.Set;

import com.cn.shiro.entity.Role;

public interface RoleService {

	int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

	/*Pagination<Role> findPage(Map<String, Object> resultMap, Integer pageNo,
			Integer pageSize);*/

	Map<String, Object> deleteRoleById(String ids);

	/*Pagination<RolePermissionAllocationBo> findRoleAndPermissionPage(
			Map<String, Object> resultMap, Integer pageNo, Integer pageSize);*/
	//根据用户ID查询角色（role），放入到Authorization里。
	Set<String> findRoleByUserId(String userId);

	//List<Role> findNowAllPermission();
	//初始化数据
	void initData();
}
